package zli.adapter.exampleLogin.v1;

/**
 * @author ZerlindaLi create at 2021/3/26 11:19
 * @version 1.0.0
 * @description PassportService
 */
public class PassportService {

    public ResultMsg register(String username, String password){
        return new ResultMsg(200, "注册成功", new Member());
    }

    public ResultMsg login(String username, String password) {
        return null;
    }

    public ResultMsg loginForRegister(String username, String password) {
        if(null == password) {
            password = "THIRD_EMPTY";
        }
        this.register(username, password);
        return this.login(username, password);
    }
}
